package com.zcc.makingfriend.mapper;

import com.zcc.makingfriend.dao.Message;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author zcc
 */
@Mapper
public interface MessageMapper {
    int addMessage(Message message);

    int readMessage(Long id);

    Long countUnread(Long toId);

    List<Message> findMessage(Long toId);
}
